package java101;
import java.util.Scanner;								//Scanner is a java program and must be imported.


public class ScannerApp {

	static Scanner sc = new Scanner(System.in);			//Allows us to use the Scanner system called "sc" in the entire program.
	public static void main(String[] args)				//Standard calling technique.
	{
		
		System.out.print("Enter an integer: ");			//Return text.
		byte x = (byte) sc.nextInt();					//Change byte to int and remove (byte) to make the output an int.
		System.out.println("You entered " + x + ".");	//Return text.
	
	}

}

//Run the program and enter an number into the console. Hit enter and it returns the number back to you.